﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Jy123.Common.Config
{
    public class UiConfig
    {
        private static readonly string rootDir = BaseConfig.GetConfigValue("rootDir");
        public static readonly string SiteName = BaseConfig.GetConfigValue("SiteName");
        public static readonly string CookieDomain = BaseConfig.GetConfigValue("CookieDomain");
        public static readonly string Domain = BaseConfig.GetConfigValue("Domain");
        public static readonly string RootUrl = BaseConfig.GetConfigValue("Url");
        public static readonly string isShortmenu = BaseConfig.GetConfigValue("isShortmenu");
        public static readonly string SkinStyle = BaseConfig.GetConfigValue("SkinStyle");
        public static readonly string gEmail = BaseConfig.GetConfigValue("gEmail");//管理员的邮箱
        public static string RootDir
        {
            get
            {
                string dir = rootDir;
                if (string.IsNullOrEmpty(dir))
                {
                    return "";
                }
                if (!dir.StartsWith("/"))
                {
                    dir = "/" + rootDir;
                }
                return dir;
            }
        }
        public static readonly string Openurl = BaseConfig.GetConfigValue("openurl");
    }
}
